package cn.wolfcode.service;

import cn.wolfcode.entity.Travel;
import cn.wolfcode.entity.Userinfo;
import cn.wolfcode.query.TravelQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author c1eye
 * @since 2022-11-03
 */
public interface ITravelService extends IService<Travel> {

    Page<Travel> queryPage(TravelQuery qo);

    List<Travel> queryViewNumTop3(Long destId);

    Long saveOrUpdate(Travel travel, Userinfo userinfo);

    List<Travel> queryByDestId(Long id);
}
